package com.quarkus.bean;

import javax.interceptor.AroundInvoke;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;

/**
 * @version v1.0
 * @Description: TODO(一句话描述该类的功能)
 * @Author: TongRui乀
 * @Date: 2020/12/20 3:40 下午
 */
@com.quarkus.annotation.MyInterceptor
@Interceptor
public class MyInterceptor {

    @AroundInvoke
    public Object around(InvocationContext context) throws Exception {

        System.out.println("before");

        Object res = context.proceed();

        System.out.println("after");

        return res;
    }
}
